
if(!(Test-Path -Path ".\Release" -PathType Container)){
  New-Item ".\Release" -ItemType Directory
}

Copy-Item ".\build\Qt6_9_x86_64_w64_mingw32-Release\release\PinAssignment.exe" ".\Release"
if(!$?){
  Write-Host "copy fail"
  exit 1
}

${env:Path}="D:\qt\qt-mingw64-6.9.1\qt-mingw64-6.9.1\bin;"+${env:Path}
cd .\Release
windeployqt "PinAssignment.exe"

